import request from "@/utils/request.js";

export function login(data){
    return request({
        url:'/sys/user/login',
        method:'post',
        data
    })
}

export function getEmail(data){
    return request({
        url:'/sys/user/sendEmailCaptcha',
        method:'post',
        data
    })
}
export function register(data){
    return request({
        url:'/sys/user/verification',
        method:'post',
        data
    })
}

export function  getCodeReset(data){
    return request({
        url:'/sys/user/sendEmailResetP',
        method:'get',
        params:{
            username:data
        }
    })
}

export function resetPassword(data){
    return request({
        url:'/sys/user/resetPassword',
        method:'post',
        data
    })
}
